Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix duplicate households on 'Merge same household' exports #14443

Merged
merged 1 commit into from
Jun 15, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Merge same household was creating duplicate rows for each household, one for the "merged individuals" and one being the explicit household directly exported.

Alternative of #14116

Before

  • Duplicate households on "merge same household" contact export.

After

  • No duplicate households on "merge same household" contact export.

Technical Details

When exporting contacts with "Merge same household" a household record is created by merging the individual record. However, that household is also exported directly leading to two records for the same household.
If a household has no relationships then we do need to directly export.

Comments

@mattwire I managed to replicate this in a test but your fix didn't make it pass - wanna test this?

From Prev PR:

Reported on two sites running 5.11 and 5.12. I don't think this is a regression as "Merge same household" was completely broken until recently.

@civibot
Copy link

civibot bot commented Jun 6, 2019

(Standard links)

@civibot civibot bot added the master label Jun 6, 2019
@eileenmcnaughton
Copy link
Contributor Author

@mattwire wanna check this - it was your bug

@eileenmcnaughton
Copy link
Contributor Author

test this please

@mattwire
Copy link
Contributor

Thanks @eileenmcnaughton I'll get to this soon!

@mattwire
Copy link
Contributor

Ok I've now tested this and am happy that it fixes the bug on the sites where it's been reported to me.

@mattwire mattwire merged commit c6dd2cc into civicrm:master Jun 15, 2019
@eileenmcnaughton eileenmcnaughton deleted the export branch June 15, 2019 10:45
@eileenmcnaughton
Copy link
Contributor Author

thanks @mattwire

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants